//
//  ScienceTSubCollectionViewCell.m
//  MansApp
//
//  Created by lanou3g on 15/7/14.
//  Copyright (c) 2015年 ACH. All rights reserved.
//

#import "ScienceTSubCollectionViewCell.h"

@implementation ScienceTSubCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {

        UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kWidth, kP6Height(110))];
        headerView.backgroundColor = [UIColor grayColor];
 
        //设置表示图表头
        [self addSubview:headerView];
     
        _headTitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(kP6width(20), kP6Height(45), kP6width(335), kP6Height(25))];
        _headTitleLabel.textAlignment = NSTextAlignmentLeft;
        _headTitleLabel.textColor = [UIColor whiteColor];
        _headTitleLabel.font = [UIFont systemFontOfSize:17];
        [headerView addSubview:_headTitleLabel];
        
        self.autherLabel = [[UILabel alloc] initWithFrame:CGRectMake(kP6width(20), kP6Height(73), kWidth-20,kP6Height(20))];
        self.autherLabel.textColor = [UIColor whiteColor];
        self.autherLabel.font = [UIFont systemFontOfSize:11];
        self.autherLabel.textAlignment = NSTextAlignmentLeft;
        [headerView addSubview:self.autherLabel];
        

    }
    return self;
}

@end
